<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-for循环对象数组</title>
    <script src="js/vue.js"></script>
</head>
<body>
<div id="app">
<p v-for="stu in student">
    {{stu}}
    <span v-for="v in stu">{{v}}&nbsp;</span>
</p>
</div>

<script>
    new Vue({
        el:"#app",
        data:{
            student:[
                {
                    name:'AA',
                    age:10
                },
                {
                    name:'BB',
                    age:11
                },
                {
                    name:'CC',
                    age:12
                }
            ]
        }
    });
</script>
</body>
</html>